package com.my.swas.photo.entity.enums;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
import lombok.Setter;

/**
 * @Description:
 * @author: :MaYong
 */
public enum PartnerTypeEnum {
    ALIPAY("alipay","支付宝小程序");

    @EnumValue
    @Setter
    @Getter
    private String code;


    @JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString) //Fastjson
    @JsonValue  //Jackson
    @Setter
    @Getter
    private String value;

    PartnerTypeEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }
}
